<!DOCTYPE html>
<html>
  <head>
    <title>支付</title>
    <link rel="stylesheet" href="/stylesheets/style.css" />
    <script src="/javascripts/jquery.js"></script>
  </head>
  <body>
    买家账号aliily3893@sandbox.com <br />
    登录密码111111 <br />
    支付密码111111<br />
    用户名称aliily3893<br />
    证件类型身份证(IDENTITY_CARD)<br />
    证件号码798121199811279306<br />

    商家账号onrvem5006@sandbox.com <br />
    商户UID2088621956371460 <br />
    登录密码111111 <br />
    账户余额100.04 <br />

    <script>
      // id  自己生成的 订单id
      // subject  订单标题
      // body  订单描述
      // amount 订单总金额

      /*  $.ajax({
        url:
          "/api/alipay?id=" +
          Math.random() +
          "&subject=xxx&body=xxx&amount=199&",
        type: "get",
        success(res) {
          if (res.code === 200) {
            location.href = res.result;
          } else {
            console.log("定单，创建失败");
            console.log(res.message);
          }
        },
      }); */
      $.ajax({
        url:
          "/api/alipayWap?id=" + Math.random() + "&subject=xxx&body=xxx&amount=199&returnUrl=http://localhost:8090/aaa",
          type: "get",
          success(res) {
            if (res.code === 200) {
              location.href = res.result;
            } else {
              console.log("定单，创建失败");
              console.log(res.message);
            }
          },
      });
    </script>
  </body>
</html>
